<?php
class NbaPlayer {
    public $name;

    function __clone() {
        $this->name = "TBD";
    }
}

$james = new NbaPlayer();
$james->name = "James";
echo $james->name . "<br>";
$james2 = clone $james;
echo "before se up: James2's " . $james2->name . "<br>";
$james2->name = "james2";
echo "james's: ". $james->name . "<br>";
echo "james2's: ". $james2->name . "<br>";
?>
